package controller

import (
	"github.com/gin-gonic/gin"
	"gitlab.local/DO-module/new-filemanage-module/src/core/middleware"
	"gitlab.local/DO-module/new-filemanage-module/src/service/filesystem"
	"gitlab.local/DO-module/new-filemanage-module/src/service/folder"
	acl2 "gitlab.local/TerraMaster/tos-modules/core/acl"
	//"gitlab.local/DO-module/new-filemanage-module/src/core/fileoperate"
	"gitlab.local/TerraMaster/tos-modules/fileoperate"
	//"gitlab.local/TerraMaster/tos-modules/middleware"
)

func FileSystemRouter(engine *gin.Engine,
	checker middleware.AuthChecker,
	shareGetter fileoperate.Getter,
	aclGetter acl2.FolderAttrService,
	fs *filesystem.FileSystem,
	folders *folder.Folder) {
	//导航栏
	InitFileNavRouter(engine, checker, fs, folders)
	//展示栏
	InitFileShowRouter(engine, checker, shareGetter, aclGetter, fs, folders)
	//工具栏
	InitFileToolsRouter(engine, checker, fs)
	//功能栏
	InitFileFuncRouter(engine, checker, shareGetter, fs, folders)
}
